<?php 
    $is_logged_in = $this->session->userdata('is_logged_in');
    if($current_page !== 'login-page') {
        if (!isset($is_logged_in) || $is_logged_in != true) {
            redirect(site_url().'login');
        }
    }
?>
<!DOCTYPE html>
<html lang="en" id="<?php echo $current_page?>"> 
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <?php
            echo link_tag('assets/css/datatables.css', 'stylesheet', 'text/css');
            echo link_tag('assets/css/bootstrap.min.css', 'stylesheet', 'text/css');
            echo link_tag('assets/css/bootstrap-theme.min.css', 'stylesheet', 'text/css');
            echo link_tag('assets/css/bbem.css', 'stylesheet', 'text/css');
        ?>
        <title><?php echo $title;?></title>
    </head>
    <body data-siteurl="<?php echo site_url()?>">
        